﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
///Tower 的摘要说明
/// </summary>
public class Tower
{
    private String _time = "-";

    public String Time
    {
        get { return _time; }
        set { _time = value; }
    }
    
    private String _towerName;
    
    public String TowerName
    {
        get { return _towerName; }
        set { _towerName = value; }
    }
    private Boolean _alarm = false;

    public Boolean Alarm
    {
        get { return _alarm; }
        set { _alarm = value; }
    }
 
    private String _temperature = "-";

    public String Temperature
    {
        get { return _temperature; }
        set { _temperature = value; }
    }
    private String _batteryVoltage = "-";

    public String BatteryVoltage
    {
        get { return _batteryVoltage; }
        set { _batteryVoltage = value; }
    }
    private String _onlineStatus = "-";

    public String OnlineStatus
    {
        get { return _onlineStatus; }
        set { _onlineStatus = value; }
    }


    public Tower(String tn, String ti,String te, String bv, String os)
	{
        this._towerName = tn;
        this._time = ti;
        this._temperature = te;
        this._batteryVoltage = bv;
        this._onlineStatus = os;
	}
    public Tower(String tn)
    {
        this._towerName = tn;
    }
}
